package com.woniu.product.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author linxin
 * @since 2023-02-16
 */
@Getter
@Setter
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product")
@ApiModel(value = "Product对象", description = "商品表")
public class Product implements Serializable {

  private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "商品ID")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("商品名称")
      private String productName;

      @ApiModelProperty("价格")
      private BigDecimal price;

      @ApiModelProperty("销量")
      private Integer sale;

      @ApiModelProperty("发货仓库ID")
      private String warehouseId;

      @ApiModelProperty("货号")
      private String productSn;

      @ApiModelProperty("上架状态;0->下架；1->上架")
      private String publishStatus;

      @ApiModelProperty("分类编号")
      private String productCategoryId;

      @ApiModelProperty("商品分类名称")
      private String productCategoryName;

      @ApiModelProperty("商品图片")
      private String productPic;

      @ApiModelProperty("商品描述")
      private String description;

      @ApiModelProperty("库存")
      private Integer stock;

      @ApiModelProperty("逻辑删除;0:正常 1:删除")
      private String isDeleted;

      @ApiModelProperty("数据创建时间")
      private Date createTime;

      @ApiModelProperty("数据更新时间")
      private Date updateTime;

}
